
<template>
    <div class="user-setting">
        <div class="login">

        </div>
        <div class="user-setting-box login-out" @click="loginout()">
            退出账号
        </div>
    </div>
</template>

<script>
export default {
    name: "UserSetting",
    data() {
        return {
        }
    },
    methods: {
        loginout() {
            localStorage.removeItem('user');
            this.$router.push('/user');
        }
    }
}
</script>
<style lang="stylus">
.user-setting
    background $bgcolor
    padding-bottom:60px;
    position:absolute;
    width:100%;
    top:0;
    left:0;

.user-setting-box
    height 59px;
    line-height 59px;
    background #eee;
    text-align text;
</style>